﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MVCBugTracker.Models.Bug>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Delete
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Delete</h2>
    <h3>
        Are you sure you want to delete this bug?</h3>
        <div class="display-label">
            BugID</div>
        <div class="display-field">
            <%: Model.BugID %></div>
        <div class="display-label">
            ProjectID</div>
        <div class="display-field">
            <%: Model.ProjectID %></div>
        <div class="display-label">
            Title</div>
        <div class="display-field">
            <%: Model.Title %></div>
        <div class="display-label">
            Description</div>
        <div class="display-label">
            CategoryID</div>
        <div class="display-field">
            <%: Model.CategoryID %></div>
        <div class="display-label">
            MilestoneID</div>
        <div class="display-field">
            <%: Model.MilestoneID %></div>
        <div class="display-label">
            PriorityID</div>
        <div class="display-field">
            <%: Model.PriorityID %></div>
        <div class="display-label">
            StatusID</div>
        <div class="display-field">
            <%: Model.StatusID %></div>
        <div class="display-label">
            CreatorUserName</div>
        <div class="display-field">
            <%: Model.CreatorUserName %></div>
        <div class="display-label">
            AssignedUserName</div>
        <div class="display-field">
            <%: Model.AssignedUserName %></div>
        <div class="display-label">
            DateCreated</div>
        <div class="display-field">
            <%: String.Format("{0:g}", Model.DateCreated) %></div>
        <div class="display-label">
            LastUpdate</div>
        <div class="display-field">
            <%: String.Format("{0:g}", Model.LastUpdate) %></div>
    <% using (Html.BeginForm())
       { %>
    <p>
        <input type="submit" value="Delete" />
        <%: Html.ActionLink("Cancel", "Index", new { projectid = Model.ProjectID }, new { @class = "button" }) %>
    </p>
    <% } %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
